package com.carskeeper.body.service;

import com.carskeeper.common.dtos.PageResponseResult;
import com.carskeeper.common.dtos.ResponseResult;
import com.carskeeper.model.body.dtos.QueryOwnerDto;
import com.carskeeper.model.body.dtos.UpdateStatusDto;
import com.carskeeper.model.body.vo.BodyCarOwnerVo;
import org.mapstruct.Context;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface BodyCarOwnerService {


    /**
     * 分页条件查询车主主体信息
     * @param dto
     * @return
     */
    PageResponseResult<List<BodyCarOwnerVo>> findOwnerByPage(QueryOwnerDto dto);

    /**
     * 修改车主状态
     * @param dto
     * @return
     */
    ResponseResult updateOwnerStatus(UpdateStatusDto dto);

    /**
     * 导出车主主体信息
     * @param dto
     */
    String exportOwner(QueryOwnerDto dto) throws IOException;
}
